<div class="mainbar">
<h2>Back test</h2>
<p class="message"></p>
<div id="condition" class="article">
	<form name="frmBackTest" id="frmBackTest" method="post" action="<?php echo base_url(); ?>">
		<p>Choose a pairs of banks :</p>
        <?php
            $date = new DateTime();
            $date = $date->format('d-M-Y');
        ?>
        <p>
            <input class="text" autocomplete="off" placeholder="from date" type="text" name="txtstartdate" id="startdate" value="01-Feb-2005" />
            <input class="text" autocomplete="off" placeholder="end date" type="text" name="txtenddate" id="enddate" value="<?php echo $date; ?>" />            
    	</p>
        <p>
            <select id="cbxcmpa" name="cbxcmpa" class="select">
    			<option value="-1">-</option>
    			<?php foreach($arrSymbol as $item) { ?>
    			<option value="<?php echo $item->getId(); ?>">
    				<?php echo html_escape($item->getUrlVal()); ?>
    			</option>
    			<?php } ?>
    		</select>
    		<select id="cbxcmpb" name="cbxcmpb" class="select">
    			<option value="-1">-</option>
    			<?php foreach($arrSymbol as $item) { ?>
    			<option value="<?php echo $item->getId(); ?>">
    				<?php echo html_escape($item->getUrlVal()); ?>
    			</option>
    			<?php } ?>
    		</select>
        	<button class="button orange" onclick="doBackTest('<?php echo base_url(array('backtest','dobacktest')); ?>');" type="button">View result</button>
        </p>
    </form>
</div>
<div class="article" id="table-backtest"></div>
</div>